package com.itheima.edu.info.manager.entry;

import com.itheima.edu.info.manager.controller.StudentController;
import com.itheima.edu.info.manager.controller.TeacherController;

import java.util.Scanner;

public class InfoMangerEntry {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);
        while(true){
            //主菜单搭建

            System.out.println("---------------------欢迎来到黑马管理系统--------------------");
            System.out.println("请输入你的选择: 1.学生管理系统  2. 老师管理系统  3.退出系统"  );

            String choice = s.next();

            //判断当前选择做出提示
            switch (choice){
                case "1":
                    StudentController studentController = new StudentController();

                    studentController.start();
                    break;
                case "2":
                    TeacherController teacherController = new TeacherController();

                    teacherController.start();
                    break;
                case "3":
                    System.out.println("感谢使用本系统,再见!");
                    System.exit(0);
                    break;
                default:
                    System.out.println("你输入有误,请重新输入");
            }
        }

    }
}
